﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace Retail.Models.DBModels
{
    [Table(TableName = "yz_customer_design", PrimaryKey = "ID")]
    public class CustomerDesign : BaseEntity
    {
        public CustomerDesign()
        { }
        #region Model
        private int _id;
        /// <summary>
        ///ID
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private int _parentmenuid;
        /// <summary>
        ///yz_customer_menu 表的主键ID
        /// </summary>
        public int ParentMenuID
        {
            get { return _parentmenuid; }
            set { this.ChangeNotify<int>("ParentMenuID", value, ref _parentmenuid); }
        }
        private int _img;
        /// <summary>
        ///图片
        /// </summary>
        public int Img
        {
            get { return _img; }
            set { this.ChangeNotify<int>("Img", value, ref _img); }
        }
        private int _title;
        /// <summary>
        ///主题
        /// </summary>
        public int Title
        {
            get { return _title; }
            set { this.ChangeNotify<int>("Title", value, ref _title); }
        }
        private int _abstract;
        /// <summary>
        ///摘要
        /// </summary>
        public int Abstract
        {
            get { return _abstract; }
            set { this.ChangeNotify<int>("Abstract", value, ref _abstract); }
        }
        private int _description;
        /// <summary>
        ///描述
        /// </summary>
        public int Description
        {
            get { return _description; }
            set { this.ChangeNotify<int>("Description", value, ref _description); }
        }
        private DateTime _createtime;
        /// <summary>
        ///时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return _createtime; }
            set { this.ChangeNotify<DateTime>("CreateTime", value, ref _createtime); }
        }
        private bool _flag = true;
        /// <summary>
        ///是否显示 1是0否
        /// </summary>
        public bool Flag
        {
            get { return _flag; }
            set { this.ChangeNotify<bool>("Flag", value, ref _flag); }
        }
        #endregion


    }
}
